package com.adinnc;

import android.os.Bundle;
import android.app.Activity;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class AboutActivity extends Activity implements View.OnClickListener {

	private ImageView mActionbarBack;

	private TextView mURLView;

	private TextView mGithubView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		mActionbarBack = (ImageView) findViewById(R.id.actionbar_back);
		mURLView = (TextView) findViewById(R.id.about_url);
		mGithubView = (TextView) findViewById(R.id.about_github);
				
		mURLView.setMovementMethod(LinkMovementMethod.getInstance());
	//	mURLView.setText(Html
		//		.fromHtml("<a href=\"http://www.creativepragmatics.com\">creativepragmatics.com</a>"));

		mGithubView.setMovementMethod(LinkMovementMethod.getInstance());
		mGithubView.setText(Html.fromHtml("<a href=\"http://jsoup.org/license\">Open Source Licences</a>"));
		mActionbarBack.setOnClickListener(this);
	}


	public void onClick(View v) {
		if (v == mActionbarBack) {
			finish();
		}
	}

}
